<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button onclick="alert('按钮1被按了')">按钮1</button>
		<button onclick="foo2()">按钮2</button>
		<button id="btn3">按钮3</button>
		<button id="btn4">按钮4</button>
<script>
	function foo2()
	{
		alert("按钮2被按了”)；
	}
	
	
</script>
	</body>
</html>
